//
//  LWPopupHelper.swift
//  LWPopupViewController-Swift
//
//  Created by 钟志远 on 2021/1/6.
//

import Foundation
import UIKit

public class LWPopupHelper {
    
    public static func showModal(showInVC: UIViewController, contentVC: UIViewController,
                          config: ((LWPopupViewController) -> Void)? = nil) -> LWPopupViewController{
        let popupVC = LWPopupViewController()
        popupVC.addContent(viewController: contentVC)
        popupVC.shouldDisableBgTap = true
        config?(popupVC)
        popupVC.show(inViewController: showInVC)
        return popupVC
    }
}
